<template>
  <view class="verification-records-page">
	  <view class="bottomcolor"></view>
    <!-- 搜索框区域 -->
    <view class="search-section">
      <input 
        class="search-input" 
        type="text" 
        placeholder="输入需要搜索的内容" 
        placeholder-style="color: #ccc;"
      />
      <view class="search-icon">
        <!-- <text class="iconfont icon-search"></text> -->
		<image class="iconfont icon-search" src="@/img/车联网服务商家端-03核销记录_slices/搜索@2x.png"></image>
      </view>
    </view>
    <!-- 核销记录列表 -->
    <view class="records-list">
      <view 
        class="record-item" 
        v-for="(item, index) in records" 
        :key="index"
      >
        <text class="item-title">{{ item.title }}</text>
		<view class="heightline"></view>
        <text class="item-info">下单用户: {{ item.user }}</text>
        <text class="item-info">实付金额: ¥{{ item.amount }}</text>
        <text class="item-time">核销时间: {{ item.time }}</text>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      records: [
        {
          title: '普通洗车、机油、工时',
          user: '张三',
          amount: '32.00',
          time: '2022-10-12 11:09'
        },
        {
          title: '普通洗车、机油、工时',
          user: '张三',
          amount: '32.00',
          time: '2022-10-12 11:09'
        },
        {
          title: '普通洗车、机油、工时',
          user: '张三',
          amount: '32.00',
          time: '2022-10-12 11:09'
        }
      ] // 模拟核销记录数据
    };
  },
  methods: {
    onBack() {
      // 返回上一页
      uni.navigateBack({
        delta: 1
      });
    }
  }
};
</script>

<style scoped>
/* 页面整体样式 */
.verification-records-page {
  background-color: #f5f5f5;
  min-height: 100vh;
  font-size: 14px;
  color: #333;
  position: relative;
}

.bottomcolor{
	position: absolute;
	background-color: #3399ff;
	width: 100%;
	height: 300rpx;
	margin-top: -20px;
	z-index: 2;
}

/* 搜索框区域样式 */
.search-section {
	position: absolute;
	z-index: 3;
	width: 90%;
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 20px;
  margin: 10px 5%;
  height: 36px;
}
.search-input {
  flex: 1;
  height: 100%;
  padding: 0 10px;
  font-size: 14px;
  border: none;
  outline: none;
}
.search-icon {
  width: 40px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #999;
}
.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.icon-search {
	width: 20px;
	height: 20px;
}
/* 核销记录列表样式 */
.records-list {
  padding: 0 15px;
  position: absolute;
  z-index: 3;
  margin: 120rpx 0 0 1%;
  width: 98%;
  box-sizing: border-box;
}
.record-item {
  background-color: #fff;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}
.item-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  display: block;
}
.heightline{
	height: 2px;
	width: 98%;
	background-color: #f5f5f5;
}
.item-info {
  display: block;
  margin-bottom: 5px;
  color: #666;
}
.item-time {
  color: #999;
  font-size: 12px;
}
</style>